package com.java.comprehensive.design.behavioral_model.state_patten.heima.after;

/**
 * 抽象状态类
 */
public abstract class LiftState {
    //声明环境角色英变量
    protected Context context;

    public void setContext(Context context) {
        this.context = context;
    }

    //电梯开启作
    public abstract void open();

    //电梯关闭作
    public abstract void close();

    //电梯运行作
    public abstract void run();

    //电梯停止作
    public abstract void stop();
}